<template>
    <i class="iconfont icon-fanhuijiantou" @click="handelBack"></i>
</template>

<script>
    import Bus from "../Bus/index"
    export default {
        name: "NavBack",
        data() {
            return {
                act: 0,
            }
        },
        created() {
            Bus.$on("fn", data => {
                console.log(data)
                this.act=data
            })
        },
        methods:{
            handelBack(){
                this.$router.push({
                    path:"/",
                    query:{
                        act:this.act
                    }
                })
            }
        },
    }
</script>

<style lang="less" scoped>
    .icon-fanhuijiantou{
        font-size: 50px;
        color: white;
        background-color: grey;
        border-radius:50% ;
        position:fixed;
        z-index: 1;
        top: 10px;
        left:10px;

    }
</style>